package demo2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: liangyuanzhang
 * Date: 2025-2-28
 * Time: 7:58
 */
public class Test {
    public static void drawMap(IShape iShape) {
        iShape.draw();
    }

    public static void main(String[] args) {
        //IShape iShape = new IShape();
        IShape iShape1 = new Rect();
        IShape iShape2 = new Cycle();

        drawMap(iShape1);
        drawMap(iShape2);
    }
}
